changed file reading modes a little
changed output to be read easier by user and in logfile
minor changes
resolving conflicts