Clean Source

Reformat source code to conform to more modern coding style standards.
Correct Minor Fault

Fix minor formating issue in file derivative.c.