the writePoints example should use the writePoints method

Just a documentation error, the writePoints example uses the wrong method