fixed ipython notebooks and toy_engine