Numerous fixes to output file auto-naming (genfile=True); add normalisation parameter for threshold blur in preprocessing.