Fixed bug in analzye experiment code.

Added code to export text file for spss