makes inner classes static whenever it is possible
removes unused private method
Replaces string concatenation with stringBuilders in loops contexts
Changes insufficient map iterator
Makes field static