fixing reordering of MPTT models
fixing up code formatting and docs