add option to save files - temporary quick and dirty solution
add example for saving testfiles - not used by default