bug fixes

working on big-endian vs little-endian errors
ran code