added progress window support in getNranges(...) in EnergyScansN.ipf, also some other cosmetic things.