Gone through all files, updated security and error-reporting

Removed redundant code
Fixed bugs in access levels