Problem with ADS1256 board

So I got the code from pafe 1 to spit out some numbers too, but its messed up a lot.
dariosalvis code seems to be right so far.

But how to set the options like PGA, sample rate, buffer etc.?
And how to read the register map?