The nice presentation of comments about TCCR1A and TCCR1B is from somebody on the internet, but I did like it too. It helped me quite a lot.
I tried with digitalWrite first, but it didn't have any effect, that's why i ended up setting the PWM off and on for each mode.