Bugfixes, Updated header information, Updated tests
Improved getLeaves method