Fixes to make clang happy
clean up header file
Fixed signedness of tests
More commentary
Improvement to comments