added maximum weight
added logger levels
added even more comments