Updated worklog. Loading statistics-file works now. Added new class for writing the stats and added some tests