Multiple typo fixes and rephrasings.
Typo fix in the code, missing i in input.