Added phpcs ruleset.
Rename and added comments.