More documentation, fixed polyline to be the correct xyz form