changed license text a little, changed some Log.e to Log.w