Updated logging statements to have transactionId; updated comments.