Improved formatting of references