Some refactoring and fixed transfer transactions generation typo.
Merge branch 'master' of https://github.com/Starcounter/RetailDemo