added store, re-organized InputProcessor code