Filled in the variable names in autoMaterialLayers() prototype

For clarity.

Minor whitespace formatting changes (spacing) for consistency.