making separate ipython notebooks
fixed some deplorable code