Cleaning up lots of code. Changed "frequency" variable names to "count" style. Aggregate terms before putting into a hash now.