change expected order of det/samp in input hdf5 file

Want time index to run fastest. Input test file adjusted accordingly.
move param definitions to header file
change detector_data structure
add rd_get_data functionality

Add functions for reading data, freeing memory used by data structure, and
test routine.
remove unused variables