fixed ema_logging annoyance, implemented control over caching in 
optimization, renamed test source folders