updated sbt build and added ability to dump distances