memset added
redirection of experiment output to file