Cleaned up RegionConsolidator

- Cleaned up the RegionConsolidator class.
- Added more documentation.