bug fixed: self-loop check
add new segment for generate network based on a exist one.
parameters rename and add progress bar showing in console.
test function for CAmodel test