more spelling corrections and trailing space removal