increase width of endpoints of line and code cleanup