-Added logfile functionality to executable