Fails with different mesh and mask files
Several routines fail if the provided mesh and mask files dont follow the expected layout and variable naming.
The names of the variables should become an optional parameter. This would at least solve the issue for cases where the "wrong" variable name causes a problem.