added hierarchy extraction to datasource
removed debugging comments from softmaxtree
table.fromString can now specify the casting function
added TreeNLL and unit tests