Updated Readme and sim.c to resolve warnings from gcc compiler