Improved GUI functionality.

Added functionality concerning text formatting and window transitions.