First commit of code.
Changed code to work directly with passed vertices.
Anti-clockwise polygons also supported.
Changed method of extending lines.