finish implementation of calcEndStability; add to docs; add to wrappers; add respective test