added the map functionality and fix errors as well as add more skeleton
delete unecessary files and adjust the map viewer