added generate if, fixed use if, made row condition more flexible
minor clarification in generate if
Merge pull request #4 from fpinter/master

added generate if, fixed use if, made row condition more flexible