Move code from INDIAdapater class to MotionActivity, add comments