Graph's and listeners

Functional graph class. Added some listeners to various components of
the GUI. Small changes to make the appearance work.