Essays On Credit And Default Under The Presence Of Collateral