refine comments and rewrite new class for wholeTextFile