Defining and refining a magnetic structure in SpinW