ENH: phpdoc, js and some other changes