Reorganized, Finished CSim script