Cleanup of map, use tuple.h for shared functionality of tuple to method calling.
Cleanup of thread pool, additional example of referencing etc.