Simplify code.
Merge pull request #13 from gmist/generate_uuid

Simplify code