Fixed segfault and author names being cutoff.

Also removed lots of unnecessary mallocs/frees.
...What were those things doing there anyway?