Truncate fixes

Fix the issues in #3 + add some more testing
>.<

Okay, I'll drop it for the moment, b/c I want to work from this head, and its no longer fixing truncation as truncation works atm :P