Re-factor file creation and support single file mode
Merge branch 'master' of https://github.com/jtakkala/tulva