Update document
Add register method