remove unused uses and add phpdoc