Add documentation to functions
Add a special test case with string containing \0