Cleaned up code
Normalized word frequency vector