bibtex and endnote support; citation; bug fix