commented code, cleaned some things up
started working on better error handeling
cleaned up config file a bit, made the tracking url in email template dynamic