Redid all changes. Need to redo the summation equations. Too cinfusing right now