fixed typos and added a line of output about the optimizer