added shapefile and fixed xyfile so that it can take floats.