adding documentation to index function in products controller