Changed line split to work
Added skipping of header