The ground state and vortices in a two-dimensional Bose gas confined in a harmonic trap