Add __nonnull__ attributes to functions of ll.h

This PR addresses issue #138.
The changes are supprigingly small, since the complexity of the functions are low.