Altered variable names from camel to snake case, renamed class files from *.class.php to class-*.php, added some comments.