Added IntelliJ project file extension to .gitignore
Classes implementing the 'close()' method now implement the java.io.Closeable interface to enable the use of java7 try-with-resources construct