change name of register functions
add some doc
add note and beginning of publisher definition to example message