added parseLines and associated unit tests