updates tomography routine and checks material definitions in nummaterial_velocity_file

fixes #302