Added TileUnit and some management. Minor improvements.