Added more PHPDoc and removed some unnecessary libraries