Cleaning up the code and making it PSR1/2 compatible

More cleaning
Merge pull request #192 from gabrielsch/patch-1

Cleaning up RecursiveTreeIterator class