added printing of progress and support for writing out processed data after pressing CTRL-C in method Analysis.loop(..)