change Emin-Emax to quantitites and add method for We with energy limits