Added C files for modifying SPICE data and optimizing rotation angle.