Essays on yield curve models with markov switching and macroeconomic fundamentals