Rearranged the order of some sections, and added a references section