added phpdoc to everything