adding how to generate the doc
added a clean method to th einventory