Removed a worthless variables
Cleanedup a variable definiteion
Cleanedup a variable definiteion
Removed the silly vector breaks in main, and put it into the marginal calculationc ode