Implement create and delete transactions

Also bug fixes here and there