Add 'implicit none' to modules

Some modules were missing 'implicit none' statements.  All the tests pass so hopefully we don't have any accidental implicits.