extensive clean up and design of new interface

woah. Really hammered on some of the frame and transformation functions.
Improved the logic of alot of previous work.