added bucketing to learning of features and fixed bug with scraping