Implement Douglas/Peucker algorithm
Improve code structure
Simple PDF export