restructured web app csv file, instread of having several function, created a class.