replaced the rest of the 'fprintf' errors with 'error' errors