Added function to get all products
Changed the if logic a bit :)
Updated GetProcuts so that if "type" is not set, all products will be returned.