[polylines] Code review fixes, API documentation