Added the basic publisher class. Fixes #8