Converted size type to float.
Added a flag to change the units of the output.