API added

- API added
- Some fix issues