Markets interactive pie chart
	- Moves all the logic into a module
	- Some code improvments