add logging to file, and gpu statistics reporting