added distance module
write out a shapefile example