Why do I get these nasty corners?

You’re on a Mach machine right? There’s a good thread about that here: Mach 4 Acceleration/ Deceleration

Before you even reach for a software solution make sure your machine is mechanically sorted out.