added textToken class, added functions defs to text class