Refactored code.

Added HTMLFeatureExtractor, and fixed bugs.