Refactored almost everything. Most functionality kept, added import
delegates and the start of voxel maps.