the logging is now thread safe again, for future usage
fixed missing header for std::accumulate
fixed header problem sleep
fixed maybe uninitialized warning