Switch to a less ugly naming scheme

Use PascalCase for functions and types and camelCase for variables
and fields. Also remove trailing "_" in member names.