cleaned up alot of the code. changed integers to unsigned integers where it makes sence. made volume a const direct accessible value such as topology and shape. made the priorities preserve the order of the meshes.