Added save to CSV

Added save to CSV on the log viewer. WIP.