Style & doc tidy; replaced typedefs with aliases.