Improve PublishNanopub class