Code cleanup
- Fixes a bug in LineFile: it was not setted in append mode, as expected
- Manges CSV header