update to latest gradle and sdk tools; removed unused code