Fixed plenty of bugs and got capacitor banks working.