improves syllable count and moves algorithms to their own file