added error_floor capability to ws3dinv in writing data file and made it easier to rewrite the data file. Also, added WSInputError class for error handling.