Bugfix

Re-write the core.js logical functions,add status display,fixed the ref
order,update API.md