Close #1, run phpcs, docs refactoring