IPython notebook added and some code shuffled.