Changes to files as per coder php_codesniffer warnings. Comments added to functions and classes