implemented save_bibtex function