Bug fix

len(buf) was recalculated and skips the last 4 bytes from the buf
Merge pull request #9 from dimdin/master

Bug fix for big decimals