no need to call make_folder now that Files::file_write does that automatically
integration test improvements; numerous small refactorings
removed tmp file left over from testing