Clean up and document mps_uniform.