Add polyline support.
Touch ups to exmaples and documentation.