doc: add documentation on module creation