added the ability to resize the map and some little stuff