adding StageB scripts and ipython notebook