Fixed the bar map generation and added some documentation.