Changed sum/product to be slightly nicer on the eyes
Added output choice (i.e. output y' instead of y, etc)