Removed unused TextMode enum.
Renamed certain classes.