Generalized some function names.
Merge branch 'master' into gh-pages