fixed syntax error and added features

i added 3 features:
* apikey is now a command line parameter
* optional move of output.out to a user defined location (like /etc/mail/spamassassin/)
* error codes on failure

i also changed to created regex a bit, but this is most likely my personal preference.