More tweaks for hte layout mainly for inclusion of IPython notebooks