Add missing init method to gateway and fix processing of transactions
Merge branch 'hotfix/0.2.1'