fixed pickle problems

pickling an instance of a class in the same script that defines the
class makes it difficult to later load that pickled object. solved the
problem by moving the generation of word_gen pickles to a seperate
script.
Replaced random string generation with word gen

Generate nonsense english-like words instead of completely random
strings. Also fixed a problem with IfSubstrIf problem statement.