Cleaned the codes. Refs #10013.