1. Work on the document API.
2. Included a selection of PMD rules, which fit better to my coding
rules.
3. Fixed some minor stuff.