Added create tests
Added exception classes
Implemented transactions
Improved transactions