Add command line editor
Replace printf() with g_print(), etc