lots of work done and undone in an attempt to tackle #2. although nothing is complete, i cleaned up a lot of variables like offset and fixed a huge logic error with getNearestValidTransition. the idea of buffer_load_speed has been incepted.