added text labels to flower graph, cleaned network code