Fixes growing knapsacks issue
Cleans and comments