PHPDoc and improved coding styles.
Merge pull request #1 from jeroenvisser101/patch-1

PHPDoc and improved coding styles.