Added graph class, phi system class; incomplete