fixed a bug that cause heap overflow error.
fixed syntax errors
undone some changes.
edited scripts for experiment run