check for eof in tmat, also notebooks
initial commit