Updating conversion code, to account for new headers (ticket #49), as well as improved byte-reversal.