Fixed typos and addressed some input issues.