fixed variable types in variable sheet

fixed variable types in variable sheet and updated code that processes
the sheet contents
updates to options handling and units scaling

updates to options handling and units scaling