Change file_get_contents to cURL and fix some tabs/spaces. Fixes #3