Full cleanup pass. Only the references section is in need of editing.