remove protocol node and rename some functions

Signed-off-by: Jens Nyberg <jens.nyberg@gmail.com>