Added drawing a weight coefficient diagram. Simplified reading from graphical file.