Add ability to dump to file, as well as --size option to control output file size