ModeParser: Implemented basic version & a test