Severe simplifications to simplify.

Signifcantly reduce simplify function, also improving its results to
actually get to at least N-1 transactions.
Fix some spelling errors in code.