Instructs travis-ci to test against JDK 7, and better documents the distance factory classes