Formatting and session identifiers

Added session identifiers to the console messages. Also standardised
some formatting.