Added checkPerm Class

Class was accidently removed. Replaced, and now fully working program.