fixing a number of small mistakes.