Moved Bibtex generation to its own class