add support of nonpreemptive multitasking and additional comments