Created add_parent method and fixed few typos in doc strings.