Add testmode and unit conversions code

Add code for testmode and code for converting from miles to meters