Adding error handling to grant/revoke script

Also adding explanation of how to run the script.