Refactored Sructure. Implemented voxel rotation (TODO: test it!)