Update README, remove unnecessary ?>, added phpdoc to classes and functions