Regime switching market models and applications