Fix illegal integer format by using simpio library for all input reading. Removed switch b/c can't switch on strings.