Finished - just need to add code links and renumber figures