Modify some bugs. Fill check_integerity.
Fix bugs. Add log items.