Far cleaner and performant tree builder
Merge branch 'non-recursive-graph-construction'
Pep8
Merge pull request #64 from fisadev/master

Cleaner and faster tree builder, less code repetition.