updated the flow diag and the read me