add comments for userInput

to describe how userInput works