clean up functions, add a file to generate random files for testing