update system flow doc, add network connection, add main