Added hinge loss, and clarified tree structure.