Documentation for extend
Added ipython notebook for reproducibility of examples used in the documentation