Remove useless extensions
Fix phpdoc and clean code