moved Mask class to separate file. generate_smooth_qm now smooths all figures and recombines them using different smoothing window per figure. also writes to hdf5 database.