start market totaler function

Needs some work but so far so good