more updates
should be done with reformatting and PEP compliance; need to fill out tests
test_cycles is not failing when it should
test_cycles is not failing when it should
fixed cycle detection