added dump to file functionality and improved time print in log_entries