Add comments and synchronize access to the map.
Add comments to describe methods and functionality.