changed method to split a line
Added class to manage the files creation