Mostly fiddly things
Credit Line fix and cleanup

Changed the credit line balance to be the amount borrowed or deposited;
seems simpler that way.
Assorted cleanup