minor fix to example in documentation, to make example source code match real status. changed addLog to addFile, and data.toRotate to path