Fixed file permissions.
Updated gitignore.