Verified file input data types

Verified that the amount and cost variables input from the file are
actually numbers