add some functions and fix.

I am back again! I add more functions.