User profile, restaurant discounts and code improvements