Fixed Resource Leak.

Also:
 - javadoc comments
 - formatter for data tree added with 2 spaces indentation
 - removed escaper / unescaper setters
 - added null annotations