add comments and init maintain
fix mail send bug