Fixed compile errors
Fixed distance calucations
Fixed tests
Hooked scalatest into the maven build