Fixed message representative weight checking

Variable used to hold weight was not being
reset after each iteration.
Merge pull request #27 from jschanck-si/master

Fixed message representative weight checking