Finished making doAnalyzingLoop and determineSeparateTerms more usable. Don't directly modify the arrayList fields any more.