Refactored nudge_points to be more readable, return data. Wrote a test. Fixes #33.