add more comments, fclose stdout