removed plotting from inference/learning; mods to stability experiment