Reworked how I calculate the band edge

Things are simpler now with more options... A win for everyone