compare equal and random weights, create weights, log maxDrawdown, and some minor changes