broke out input handling
got rid of scaling mode
switched around inputs
marked up the roles of the various paramteters