small fixes
fix bug with String.format
small stylistic fixes
fix a bunch of PMD warnings
gh120: fix stack overslow when terminating debugged node