refactor

1. create seperated files for class
2. add input value for entertext cmd
3. Support extend command