Added catch and logging to exceptions that may occur.
Removed strange HTTP header. Also added additional error checking.
Released version 1.2.1
Merge branch 'develop'