Simplified the de_cast function a bit.
Generated the de_cast data for the whole curve and implementing print to datafile.