fixed typos in JavaDoc
replaced local vars of type StringBuffer with StringBuilder
Update NOTICE.txt

Updated copyright year
Merge pull request #338 from logangorence/patch-1

Updated the copyright year for NOTICE.txt
Merge pull request #336 from andresteingress/refactorings

Refactorings: Javadoc typos and StringBuffer to StringBuilder
Improved test in case the code executes too fast
Merge remote-tracking branch 'upstream/master'