Changed __mod__ to %
Removed crappy functions and switched to generators
Fixed silly typos in generator names