improve comments and tests for balance and insertBalanced