significant update

Updated extensive new code based on the btk c3d reader. Some new
functions. Added test data.