Merge pull request #423 from markusr/master

Returning a valid string with 0 termination
Simplified clone_get implementation