Fixed typos, phpdoc and some unused imports

Fixed typos, phpdoc and some unused imports