Handle multiple error conditions with a single exit point.
Add the (default) ability to scale the 2D domain to a max dimension of 1.
Make scale_to_one selectable from the input file.
Clean up input file.