Merge pull request #1 from mengxr/dtree

minor style updates
making methods private
making some more methods private
updating javadoc and converting helper methods to package private to allow unit testing
implementing code style suggestions
another pass on code style