Cylinder length

Here are some fixes for the cylinder length definition and I added the sphere in the switch case.