adding code for writing Noise vals to file