Fixed example files so they work out of the box

Copied the working todo example from the documentation because the one
included was outdated and broken.