Implemented AreaManager, display single-layer area, some bugfixes and restructuring.