update README and clean up main_process.c