Various typos and updates.

Fixed some types and a few other changes and suggestions.