Cleaned up android code and commented.