Parse comments on document level

Adds the `commentsOnDocLevel` directive, which fixes #324.