before adding learning mechanism

todo: A motion generator, including:
1. read standard motion from file;
2. speed factor;
3. random noise;
some refactoring before adding new logic
some more refactoring