1. Work on the document API.
2. Included PMD rule selection which fits better to my coding rules.
3. Fixed some minor stuff.