Implemented a text output widget. Added new versions of core classes designed for use with the graphical interface.