Improve documentation
Document behaviour of null values
Fix memory leaks in mongo.c