Added publish and subscribe features.
Fixed bugs.
Updated readme.md and smart.json
Updated README.md