Fix in example of counters
Merge pull request #198 from debugger22/example_fix

Fix in example of counters
Added the cycle detection functionality to the Tree class.
Made better comments for new alterations to the Tree class
Added reset method to the setDepth method.
Made a tests for the Tree class functionalities.
Made minor corrections after feedback on pull request.
Made better test. The ones before, although correct, were poorly written and not flexible at all.
Used autopep8 for PEP8 conventions.