code cleanup and error handling
try different ways of weighting states
TagCloudService unit tests