validate_linelist function

Checks the content of a linelist object