Add module dev guide and some comment in code.