Dev ivan

Forgot to initialize the max weights correctly. Was able to initialize the correct size, but not able to set all max weights to 1.