Wrote functions to add references easily.

NB : Theses functions are not tested.