concurrency solved,simulation cycle bug fixed, code cleaned