Check that modifiers ANDed with flags are not equal 0 instead of greater than 0

Greater Than will evaluate false if value is less than 0. I am not expecting negative values here, but it may cause bugs in the future
Add comment to the code parsing columns from cursor