added phpdoc and jsdoc