added some effect. andn non blocking keyboard input in simple.c