Added PHPDoc where required