Publisher now throws an error when nothing is published.

remove unnecessary code

Added support for release versions.

fixed syntax problem

fixed syntax problem