Updated style, changed alphabet
redid the encoding of the string, fixed index overflow error