changed '.out' files to '.txt' in the code... also deleted print debug messages