Cleaned up the GraphView code a bit, added some comments.