added docstrings to all functions and revised support-filtering given
contingency matrices.