In generate_files(), changed arg "f" to "f_out", as Chris Shoemaker