Terminal structure updated. Now includes Command class and subclasses