modify defn of INPUT_ALPHABET and add comments