refactored to remove map from main activity and place in fragment.
fixed preferences, fixed gps.