documentation for checkParams and checkQuery

Added documentation for checkParams and checkQuery