Add a comment and some tests including the NULL byte.
Reformat comments here.
Formatting.
Rename variable to be more descriptive.