added some code.
Fixed spelling mistake.