Add some phpdocs / comments
Fix typo