Fix restart error
Fix restart
Add documentation