PhD on shallow NV-centers in diamond