saveFile function

Saves a report with important statistics to describe the sample.