Added some documentation for module
also implemented some useless things in module.c/event.c