Added code to the redefinition of bibliography (to references) to also put the references in the table of contents automatically.