Added basic GUI functionality

Mainly display changes, with some code cleanup - especially to address
compiler warnings.