Added the ipython notebood and squashed a bug in the complementary pair computation.