Adjustments to set union syntax
More adjustments to word sets
fix minor bugs