updated phpdoc
Added unit tests and removed unused methods