adding documentation to productscontroller.php