added discountCodes to confirmOrder
added new number formatting method
updated checkCode function
added processCode