Resolved the finalising issue

Resolved the issue with epub document where the documents were not getting finalised. My bad, sorry, I fix that with this commit.

Also it seems I had set the wrong permissions on ev-view.[c,h]. Also fixed that.