Fixed bugs and switched to (-180,180) system for longitude.