Made changes to docs, changed the transaction callback to a register function, separated history, queue and preview apis for transactions and messages.