Acquiring Motor Skills Through Motion Imitation And Reinforcement Learning