Added some comments.
Refactored rendering to allow map based document. Renamed :content to :document. Relates to #21.