fixed issue where ui would not be enabled after running sim
renamed gen xy to gen wh
removed misc.h