Added addhierarchy to methods.
added addhierarchy to documentation.