Adding phpdoc api documentation