fixed a spelling mistake.
removed old code.
improved doco.