fixed make_psi so that it passes all tests. edited some docstrings