added Publisher class for streamlining publishing and modified other code and readme accordingly.