Add newlines at end of file.
Add output binary to .gitignore
Fix segfault -- buffers didn't have space for null-byte string terminator.
Merge pull request #2 from hmage/master

Fix segfaults