New changes

small changes in c code