add gpl header and support for polygons
support for open/closed splines
Rename file
Add command line args