MMS_LIB_ERROR_FILE -> MMS_LIB_ERROR_IO
Added more error codes