Fixed bugs in amortization logic
Added support for lender specific loan program settings.