be consistent with casting spaces
add comment that names are always null-terminated strings

while data to be hased may be arbitrary byte arrays,
node names are null-terminated strings
rename "key" as "node_name" when required to be null-terminated