Fix minor issues.
Change Gradle configuration.
Fix source files headers.