IPython integration fix and docs