Wrote doc for check_input.
Corrected spelling mistakes.
Fixed grammar error and improved description.
Merge pull request #1922 from Hengjean/CheckInputDoc

Check input doc