add new module.wq
update some docstrings and code.