Header modification

Added the header modification to .csv files.
Next comes the lines logic and then modification.