points in poly returns int instead of bool
error in point list creation corrected
ploygon distance function added