added notes, read till EOF etc.