add phpdoc
upgrade lib