Minor changes
More work on macros
More refactoring and optimizations in meshes.
Some minor stuff I don't remember
An ugly hack to balance trees. Will need to switch to RBTs later.