Main commit, including tests. Flex PMD v1.3.0.