Replace StringBuffer with StringBuilder

Fix: Using StringBuilder instead of StringBuffer,
Fix some code style issues

Fix: Some issues only related to the style of the Classmod code.