Move periods outside parentheses
Replace explicit reference numbers by LaTeX label and reference tags