added configuration option EnableGeneralStatistics and code to gather memory usage every minute