update check.sh
updated documentation