Remove debug code and add some comments
Add comments / phpdocs