Finalized module type.

- updated commit message
- also fixed main documentation