Cleaned up the code, commented some stuff. Also, fixed the non-cubic dataset problem. The dataset file descriptions at volvis.org tell the resolution and SPACING BETWEEN LAYERS (I thought it was the ratio). So, just a simple fix on the volume size in world coordinates declaration solved my problems.