Allow dumping to file, cleanups and gitignore change.