adding a profile function
Merge pull request #5 from weisjohn/master

adding a profile function