updated gemfile
sanitized count words
maximum threads working