Separated code in methods and classes. Prepared merging of two graphs. Getting custom display to a better result, but not perfect still.