Commented files and fixed a few security issues

Final commit for the project