added some comments + minor cosmetic changes
Silence a  "deprecated-declarations" warning in boost named_mutex header (comes from some deprecated semaphore calls on OS X)