Tweaks in residual calculator

* Remove some unused/redundant variables
* Allocate vectors outside loops
In parse.py fix filtering to work with types correctly

e.g. comparing "1e-12" == 1e-12 by using ast.literal_eval to get
correctly typed values to compare.
Add option + code to output spatial values of |m| error