Added transactions
Cleaning code smells.
Use more asserts
Better make
Basic connection