Add BUILD.md file; improve gradle files