Optical frequency comb generation and its applications