Added gitignore, updated examples.js, fixed version check.