All the truncate tests pass, code is extremely ugly.
update readme and added extra truncate method fro truncatefrom.