Used predefined functions to get statistics. Created statistics file with specified name.
Added code to write statistics to statistics file for all read files in specified directory