Add gen_IM_data to implement a tool for data generation from other cin.
Improvement of key2pho.c's comment.