finalizeCurrentTx() now adds a change output, plus some extra niceties