Switched all functions (except for randomize_phase) to new data format.
Switched all functions (except for randomize_phase) to new data format.

scot-dev/scot,mbillingr/SCoT,cle1109/scot,cbrnr/scot,cle1109/scot,mbillingr/SCoT,cbrnr/scot,scot-dev/scot