Add version check
Merge pull request #7 from dcz/master

Add version check