fix division in update_bounds for boundless surfaces, refine comments
adjust bbox_sort to work with arrays, enable sorting