Modified openyml() function

openyml() now (presumably. I haven't been able to debug on a computer
with the appropriate libraries) returns arrays of the correct shape.