bug (id generated as '-1' at json file) fixed.
simulation almost working. some bugs to be identified.