Fix spelling and reference errors