Enhanced Capsule-Based Networks And Their Applications