Added mode class for classifying input modes. Added modelist to organize input modes