Fixed bug with octrees, added level model
More small fixes to how creating octrees works