process content document regardless of its type. various small cleanups

| Q             | A
| ------------- | ---
| Bug fix?      | no
| New feature?  | yes
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | see travis
| Fixed tickets | #55
| License       | MIT
| Doc PR        | TODO