A lot of work
Further refactoring
Implemented get_mesh_csvdata and a lot of other work