Added toUppercase and toLowercase methods to Name.

Also some code and doco cleanup.