Added stop goal.
Merge pull request #25 from jaxzin/issue-23

Added stop goal, fixes #23