Improved loading of file and error reporting in mpProgram