Added distance from point to line. Added calculation for area of polygon.