updated eband so that add repair compiles. does not work right now. debugging required
a bunch of small changes based on debugging in the simulator. the code should still be considered highly experimental