Dispatch loading map code.
Add comments to some functions.
Cleanup unused code in map loading.