created addWorkoutToLog function which saves workout to logfile