Added context

Added context to messages sent in a transaction and some advanced debugging features. Advanced as in no println.