added support for changing title
added close() call to BufferedReader and added System.gc() call