specify model file using an option, so that a default file can be defined; updated error codes