fixed syntax errors for create affinity group
updated for next iteration
and again

once we have found the group we are interested in, return it!
remove redundant condition
waitForState no longer required
Merge pull request #3 from daniellemayne/2013.02

sync commits that missed last 2013.02 PR but are already in develop