add inputs update function and fix bug of box flying around
change so that it now does the right number of inputs/outputs per componenent andcreat update functions for the components