Added removeResiduesFromChains draft and doctest.