I would have told you a Glock but if you didn't like shooting it I would look at Smith and Wesson M&P, Sig Sauer P320/226, or a CZ SP-01 or their polymer series.I know one was a fairly compact glock and it was very difficult to shoot accurately
Don't mess with .40 go with a 9mm.
Revolvers are nice but you pay about double the price for ammo.