Update advanced.rst

Minor typos / omissions.