Fixed spelling mistake and added some comments.