Re: question 1. The answer is in the link I provided.

Re: question 2. What do you mean by "correct the wrong patterns"?