Some more updates

Added a new command line option for setting the endianness, still lots
to do.