Fixed a number of errors involving conversion factors to output the correct results.