Incorporated Ryan's suggestions. Added short section at the end about
ending a transaction.