added a check to set up key if it does not exist yet.
Merge pull request #17 from MichaelHilton/REST_Call

added a check to set up key if it does not exist yet.