Refactoring Code

Tidied up most of the code and commented it. Removed unused code.
Finished the Calender API Cron & the form validation