Now runs, but and dist. angles are still Nans.

issue #301.