Update code.

- Add continuous attributes
- fix the misunderstanding of maxIterations