added total distance and diameter, some refactoring
Merge branch 'master' of github.com:janlugt/ppp