These module level comments should go right above the module definition, like:

```ruby
# This module implements functionality for X
module X
end
```

We don't (yet) have doc guidelines or put much effort into api documentation, but putting the comments right above the class/module definition ensures that documentation tools will associate the comments with that class/module.