Add compile settings in build.gradle

And add some comments