removed test graph files and wrote direct rep in file ; added some docstrings