Scale edge thickness according to weight (with UI) and some minor changes