Beginning branch to format inputs to make sure they are valid values, including appending the appropriate extension to the filename
Outputs error messages for out-of-range freq and duration as well as for empty string file name. This returns with status (1) for error cases.
Program will append .wav extension for file names that are too short to validly have that extension.