Better documentation, truncate debugging file.