whitespace fix in main()
basic export functionality implemented, recover snapshot --> TODO
removed trailing lines from sources