create module api add comments for code and fix widget