Fixed MAX_CODE and MIN_CODE check in setCode and sequence number in getHeader method