Added map generation functionality.  Added some comments