Fixes #22, generating file with day statistics