2 things you need to check. Idle speed and clutch. One of those 2 is responsible for it moving on its' own.
For the spur gear problem, I would say you haven't set the mesh properly. Put a sliver of paper between the spur and the CB pinion, press the 2 gears together firmly as you tighten down the engine. Take out the paper, and you should have a perfect mesh.