Fix integer reading.
Changed littleEndian argument in _getBytes to reflect expected byte order; small optimizations.