Implemented Transactions – closes #49

Needs refactoring.
Refactoring: Transactions #49

Metrics back to normal