#69 BalanceScaleNode: optimization fixes, refactoring and cleanup