replaced string concat with .append in string builders
removed unused imports
converted member to local var
simplified using lambda expressions and <>
.listFiles might return null
fixed brace placement
Merge pull request #4 from janosgyerik/minor-fixes

Minor fixes