began writing docstrings and removed freq dist and associated code