Fixes #23. Problem of appending the file.

Solved the problem of appending the statistics at the end of file I
created the procedure ClearStatisticsFile.