Problem with ADS1256 board

Hello,

I have created a nicer code, a sort of library, but does not include all the functionalities of the chip.

I have uploaded it on this gist.
Feel free to fork it and improve it!