Added DD legacy SQL file and added old wrapper functions
Added pointsAsPolygon function to main functions
Updated documentation