Essays On Credit Risk