Added phpdoc blocks to most classes/methods and added license info to each file