Added CD tutorial.

Also added a method to extract a community by index.