corrected comments
implemented a method to find comment lines
updated out_file