Converted some functions to generators; Fixed missing and incorrect functions; replaced soup with pyquery to beautify code and lessen dependencies