Hotfix weight table, writeback, chunking test

The sampler output files have suffix ".text"...