Adding build.gradle file and revising Makefile