improvements for bibtex modal and some bibtex parser fixes