some minor performance optimizations and gradle scripts made executable