Code for the C-spine project