Worked further on references. They are basically done, but I might need to beautify them some more