fixed typos and fixed spinmotor example