finish SQP and correct some spelling errors