Fix #12 - Better string formatting in code.

I am still not completely happy with how the code looks, but it is
coming along. There is a lot less string bloat. I separated the
entry template from getting the entry's data. Instead of writing
the file line by line, I write it all at once.