Fix wrong message and unpublish not working. Closes #15.