add phpdoc comments
add unit testing framework