Added "limit" to getAncestors function.
Changed to use amoebaId for naming.