Writes to the log file

WIP Scripts now write to log file