output and input fixed up and ready to go
i think acceleration calculation works