tests, more of the supporting functionality, start work on main loop, start work on sorting