Make calls to the finish_entry callback optional

As discussed in PR #37, I made `finish_entry` optional, so it can be set to `NULL` if a format does not need this callback.

I tested it by merging #37 into this, getting rid of the dummy function and running the new tests. It worked for me.