[Android] code cleanup and added some useful javadocs.