Clean up tournament tool output and sync with libsd.