Some small changes.

1. Fixed some bugs.
2. Changed wiki to local.
3. Improved some codes.