Add transactions

Add transaction documentation and an explanation about the transactions flow.