Added doc lines to operator functions
[BF] Fixed problem in GenGrid

where only one cell is populated if the random coordinates generated for the two
points are the same so they override each other and only one cell is populated
instead of two
Operators should return the new state and the cost