Fix onTouchEvent, update gitignore, fix gradle problems.