Refactor CDF class.
Add docstrings to various PMF methods.
Add docstrings to CDF.
Add docstrings to helper functions used to refactor CDF.