1. Fix the bug in DivMe function which cannot handle the scalar tensor and broadcast case. 2. Clean the codes. 3. Fix minor errors.