add ensure parameter for version
Merge pull request #3 from jlambert121/ensure_version

add ensure parameter for version