work on documentation
Small doc notes
close the logging correctly