added dockblocks comments and unit tests; added phpunit support