Moved definition of error type for Materials Commons project from mcfs
to base. Cleaned up code.