added support for multi BMs, updated tests, added function to calcualte adjusted weights and biases