Merge pull request #3 from KokaKiwi/master

Little changes.
Closing the file when cant alloc the memory for the content
Updated version to 0.1.1
Generating config file with cmake
Sending user agent for GitHub API. Fixes #5
Updated version