This codes were used in as the base of my master studies to evaluate the generation of optical comb with ultra flat power pic differences.