Ignore IDEA project files.
Fix some checkstyle issues.
Specify charset for InputStreamReader.