Stochastic Control In Optimal Insurance And Investment With Regime Switching