Merge pull request #34 from petersohn/master

Factored out polygon type
Fixed typo in readme
Merge pull request #35 from petersohn/master

Algorithmic corrections