A numerical study of Taylor bubbles