Renamed variables and other stuff
restoring previous algorithms now works
Moved query spectral data from tab to map infoWindow