Add reweighting function and test for it. Update unittests for baseline
This turned into more than I meant it to--should have made two requests. The reweighting function is for #43 (closed), but it doesn't close that one yet. The unittests are for #47 (closed), post processing, and baseline.
Edited by Patrick Meyers