all: more code cleanup and perhaps slightly better bigendian handling though more common routines/includes.