Fixed crash & compile warnings.
Initialize return value.
Merge pull request #9 from ened/warnings

Fixed crash & compile warnings.