Refactor doc

Fix phpdoc
Fix #387