Major bug fix

Primary key corrected in report.php and included comments in controller
classes