CSim compiling and works