Fixed gradle import errors. Fixed gitignore file.

Set up main gradle file.