Fixed in error in notebook 6, plus some reformatting