added publication logic
Merge pull request #7 from jsajnani79/yifan

added publication logic