edited logging by renaming log to a .txt