Merge pull request #97 from katuma/staging

getAffectedTransactions fixes
Formatting fix.