Resolved two warnings: unused code and resource leakage on streams.

These changes resolved two warnings Eclipse was raising.  Closed file streams opened in `copyFile`.  Removed unused `int i = 0` in four methods.

The change to *.gitignore* was necessary because I needed project-specific settings to insert hard-tabs.  :smile: It would be nice to use a try-with-resources block in `copyFile`, but I'm not sure if this is a Java 7 project.