Initial commit of reweight.pl