Named the package distance, some refactoring, improved docs.