Fixed segfault and author names being cutoff.

Also removed lots of unnecessary mallocs/frees.
...What were those things doing there anyway?
Merge pull request #19 from t-richards/master

Fixed segfault and author names being cutoff.
Upstream merge