minor updates for style and consistency
Preserve whitespace for java stacktrace; remove unnecesary dump of empty struct/arrays; cleaned up displayed of session id on the different scopes