refactors graphs file somewhat, removing stupid comments