Drop some unused codes.
Fix some typos.