SW-4 Implemented truncate method.
Merge pull request #15 from jsolve/SW-4

SW-4 Implemented truncate method.