Merge pull request #4 from godswearhats/master

Minor prep work ready for homebrew
Version number set to 1.0.0 and removed tarball
update NEWS
compat function for getline using fgetln
Add tests, some of which fail right now.
Replace scanf with custom parsing
Bump to 1.0.1
Merge pull request #2 from johnmorrow/master

Merging from johnmorrow/pk