some comments and consolidated makeGeo function