added new version of gen.cpp meant to contain error and writing functions
added new version of gen.cpp meant to contain error and writing functions

Pshriwise/moab_tools,Pshriwise/moab_tools,Pshriwise/moab_tools