update some new functions.
Merge pull request #273 from hanrea/master

update some new functions.