Cleaned the codes. Refs #9358.