added documentation for checkParams and checkQuery