resolves #495 add attribute to keep lines that have an undefined attribute

- add tests for dropping (or not dropping) lines with an undefined attribute