Changed file for logging from SM logfiles to seperate logfile.
Fixed string declaration