more work on cylinder segmentation
merged my latest changes in