Added textbox and button for setting line weight
Added functions to set the weight of the line