Add CreateDynamicCylinder and clean up some code

Fixes #18.