Added mg_printf() back
Added multi-threaded example