Adding RAPS and some initial C code