fixed typos in JavaDoc
replaced local vars of type StringBuffer with StringBuilder
Merge pull request #336 from andresteingress/refactorings

Refactorings: Javadoc typos and StringBuffer to StringBuilder