Permissions added. Added ending feautes. Got to optimize code and add a
few features.