Many small changes to reduce warnings in R CMD CHECK.

Need to fix clean options in dfm.