Normalize parameters.
Add documentation; standardize names.