major map overhaul; refactored functions into iCoast namespace