modified:  main.c => added nice cursor and signal handling for ctrl-c