Added weight function to bargs.
Debugged refactored experiment build.