Added a convenience function for showing things in their default representation.
Refactored event handling.