Code formatting and clean up.
Fixed main charts set selected year on load.
Formatting and error check added for select current year on load of the chart.