priority matching done, pretty printing done

Need to:
Change to class style.
one line access to analyzing graphs