spelling correction and formatting