Added usage statement, changed grep/sed/awk commands to use a regex that does a more explicit match rather than simply a substring match.  This should help prevent accidental partial matches.  Also replaced a couple points where the cpanel.config location was hard-coded instead of using the variable.  Added quotes around certain variable names to prevent accidental evaluation of arguments (ie: SecurityPolicy::xml-api).  Changed the grep conditions to use the "-q" flag rather than >/dev/null.  Added error message.
Added quotes and regex to avoid false-positive matching
Replaced hard-coded cpconfig references with the variable
Merge pull request #1 from StafDehat/master

Cool, merged. :)