Cleaned repository and added phpdoc