Added .gitignore.
Fixed typo in check:
Fixed weirdness with permissions.
Added Hashmap