lots of code update

cleaning it up a little. fixed SedFlux plto