Cleaned the code

Deleted useless code. and kept the essential one.
There is a but with the calculateReverseToken. It reveses sometimes
tokens that should not be reversed. Will ahve to fix next.
Fixed the token assimilation

There was a bug in the token assimilation where it would assimilate
some token that are not supposed to be assimilated. Code has been
update. Now it is more accurate.
Working on a safety check

Trying to make a code that prevent the Null Array reference. Still a
lot of things to do.

///SAFETY
//###Safety check