Add converting code to docs