update clone to correctly copy a Buffer
Merge pull request #30 from iamdoron/master

update clone to correctly copy a Buffer