change the meaning of lsc_emit, sweep tests.
add a rule for lsc_setcontext, complete documents.
small fix of documents.
add queue_task utils to simplify code.