Optimal investment and pricing in the presence of defaults. (12th July 2019)