finish some functions
Merge branch 'master' of https://github.com/zpzsoft/sdp