added documentation to index function in  products controller