Added some minor modifications for text mode and disabled sentence-end-double-space t in the LaTeX mode hook because it was not staying local to tex mode buffers.