[#59] renamed the `getParent` function to be less confusing and fixed documentation