Init docs in NewDocStorage().
Include the filename in error messages.
Add a missing doc comment.
Add more detail to a doc comment.