Fixed error handling and added support for list_headers and facebook_headers

Also bumped the version number from 1.0 to 2.0.1 as per http://semver.org/