Finished text version.

Added framework for GUI version.

Tests need to be fixed.