bug fixes & added ability to predefine average weight for topptreweighter