added xor-shift random number generator, commented c code and updated opcounting in c code