goal functionality,pls be gentle
Merge pull request #2 from michaelpeng/michael

added some goal functionality, please be gentle