Added Generator assignment
Fixed to be infinite generators rather than having end points
minor edit
Merge pull request #150 from rivese/generator

Generator assignment