fixed bugs, refactored, added sample route, took out hierarchy stuff