spelling correction and reformating.
working program