added javadoc for getInput and getInput(num)