[Fixed some minor issues] Added comments to files. Fixed some "I/O never
closed" issues. Add SuppressWarnings annotation to this class.
Deprecation mainly exists in saveXML() method.