Added attachment exporting, explicitly closed open files sooner, added comment to the example config, printing gophers