some small changes, including making a debug directory in the function,
and adding a helper function for chow-heegner into multimod.sage