attempting to convert to xdr library
Revert "attempting to convert to xdr library"

This reverts commit 2fd45b9cea431c67bc58f5fe63ab155ee08366c7.
add read_next_xtc
We have the correct interface
split up module from test program