fixed null pointer errors and can display markers on map