Removed settings and improved the substring handling

I went ahead and removed the settings.

I also made the substring "look" for the actual words, as some of them are chopped off when using the substring. The code is pretty heavily commented but the gist is that it divides the substring on the whitespace (creating words) and then removes the first and last (which may or may not be chopped words). This results means that the string which becomes looked at when determining the language only receives fully written words.

The variables can be played around with to find the optimal substring / words length.

Note sure how this works for languages such as chinese and japanese which handles words differently.