Added getParents and getChildren.
Updated readme.