Added hovering functionality to the bar graph, various bug fixes and code cleaning