Fixed obvious bugs with simulation, unit conversions.