Simplified math in volume creation, removing redundant constant and explicitly using tanh.