Added initial text anaysis and integer encoding