Created discounts
a lot of code fixes