add truncate
Merge pull request #29 from mafintosh/truncate

add truncate