Fixed demo code so that normalization is done on a per example basis.