Add thread management and mutex on common variables, average calculation is improved, BUG: the map cannot be cleared (?)
Threads ok, options and logger quickly improved. Still need README, comments and check tests