tested bibtex reader. minor fixes. seems to be working now