much faster parsing of corpus

removed the recursive string/dict building
and use Enum iterator methods instead