CHANGED NAMES in a lot of the code, and added contrast sums method