Improve ignoring comment and whitespaces of the input file; rename and modify the script.