added fixes to compilation errors, 3/4 tests pass
adding changes to fix balance_checker