added goal
added end flag
Merge pull request #7 from ethosrot/master

Go go go.