Extracting key points and reformatting reference