documented version; makefile changed to include graph generation