Mainly implementation in DebtDetailsViewController

Mainly implementation in DebtDetailsViewController and a few bug fixes