fix perl version
fix makefile
Fix datetime parsing. Add distance.