fix major bug with ordering input variales. minor bug fix in brakes,fcl.