major update of primary model
1) addition of irradiance data
2) clean up of stateflow chart
3) address switching stability issues