Add document weighting

- DocTable constraints now also include Applicative
- solves #41