Delete unable code
Add comments and fix code style.