Fixed topological sorting logic, added integration test, simplified signatures
Merge branch 'master' of github.com:mdubsfresh/tube