Old mask support
Closing the figures after they are saved to save memory
Report generating script added
q values are now saved in the results