Optimize cst-grant.sh

Optimize cst-grant.sh by organizing the variables and adding
a comment