Added many options and fixed bibtex file writing for missing doi.