added reference to origin of c code.