Remove unused function and typo fixes.