Fix findbugs warnings
Add gradle build configuration